package com.carkeeper.user.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "tb_car")
public class Car implements Serializable {
    @Id
    private Long id;                        //id

    private Long brandTypeId;               //子品牌id
    private String name;                    //名称
    private String code;                    //车牌号
    private String mode;                    //系列
    private String series;                  //型号
    private String imgUrl;                  //图片
    private String engineCode;              //发动机号
    private String frameCode;               //VIN码
    private Long insuranceCompanyId;        //保险公司id
    private Date insuranceFinishDate;       //保险期限
    private Long userId;                    //所属用户id
    private String isDefault ;              //是否默认

    public Car() {
    }

    public Car(Long id, Long brandTypeId, String name, String code, String series, String mode, String imgUrl, String engineCode, String frameCode, Long insuranceCompanyId, Date insuranceFinishDate, Long userId, String isDefault) {
        this.id = id;
        this.brandTypeId = brandTypeId;
        this.name = name;
        this.code = code;
        this.series = series;
        this.mode = mode;
        this.imgUrl = imgUrl;
        this.engineCode = engineCode;
        this.frameCode = frameCode;
        this.insuranceCompanyId = insuranceCompanyId;
        this.insuranceFinishDate = insuranceFinishDate;
        this.userId = userId;
        this.isDefault = isDefault;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBrandTypeId() {
        return brandTypeId;
    }

    public void setBrandTypeId(Long brandTypeId) {
        this.brandTypeId = brandTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getEngineCode() {
        return engineCode;
    }

    public void setEngineCode(String engineCode) {
        this.engineCode = engineCode;
    }

    public String getFrameCode() {
        return frameCode;
    }

    public void setFrameCode(String frameCode) {
        this.frameCode = frameCode;
    }

    public Long getInsuranceCompanyId() {
        return insuranceCompanyId;
    }

    public void setInsuranceCompanyId(Long insuranceCompanyId) {
        this.insuranceCompanyId = insuranceCompanyId;
    }

    public Date getInsuranceFinishDate() {
        return insuranceFinishDate;
    }

    public void setInsuranceFinishDate(Date insuranceFinishDate) {
        this.insuranceFinishDate = insuranceFinishDate;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }
}
